package com.yc.snack.entity;

import java.util.Objects;

/**
 * @Auther: HuYang
 * @Date: 2022/11/6 - 11 - 06 - 11:30
 * @Description: com.yc.snack.entity
 * @version: 1.0
 */
public class AdminInfo {
    private Integer aid;
    private String aname;
    private String pwd;
    private String tel;
    private Integer status;

    @Override
    public String toString() {
        return "AdminInfo{" +
                "aid=" + aid +
                ", aname='" + aname + '\'' +
                ", pwd='" + pwd + '\'' +
                ", tel='" + tel + '\'' +
                ", status=" + status +
                '}';
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof AdminInfo)) return false;
        AdminInfo adminInfo = (AdminInfo) o;
        return Objects.equals(aid, adminInfo.aid) && Objects.equals(aname, adminInfo.aname) && Objects.equals(pwd, adminInfo.pwd) && Objects.equals(tel, adminInfo.tel) && Objects.equals(status, adminInfo.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(aid, aname, pwd, tel, status);
    }
}
